package oaSystem.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Message {
	private Integer id;
	private String title;
	private String content;
	private Employee creator;
	private Date sendTime;
	private String receivers;
	private Integer level;
	private Integer status;
	private Boolean isSent;
	
	private List<MessageAttachment> messageAttachments=new ArrayList<MessageAttachment>();
	private List<Employee> receiverList = new ArrayList<Employee>();
	
	public List<MessageAttachment> getMessageAttachments() {
		return messageAttachments;
	}
	public void setMessageAttachments(List<MessageAttachment> messageAttachments) {
		this.messageAttachments = messageAttachments;
	}
	public List<Employee> getReceiverList() {
		return receiverList;
	}
	public void setReceiverList(List<Employee> receiverList) {
		this.receiverList = receiverList;
	}
	//两个List 1.放收件人信息  2.附件
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Employee getCreator() {
		return creator;
	}
	public void setCreator(Employee creator) {
		this.creator = creator;
	}
	public Date getSendTime() {
		return sendTime;
	}
	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}
	public String getReceivers() {
		return receivers;
	}
	public void setReceivers(String receivers) {
		this.receivers = receivers;
	}
	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Boolean getIsSent() {
		return isSent;
	}
	public void setIsSent(Boolean isSent) {
		this.isSent = isSent;
	}
	public Message() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Message(Integer id, String title, String content, Employee creator, Date sendTime, String receivers,
			Integer level, Integer status, Boolean isSent) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.creator = creator;
		this.sendTime = sendTime;
		this.receivers = receivers;
		this.level = level;
		this.status = status;
		this.isSent = isSent;
	}
	
}
